import * as actionTypes from './constants'

const defaultState = {
    rankList:[],
    enterLoading:true
}

const reducer = (state=defaultState,action) => {
    switch(action.type) {
        case actionTypes.CHANGE_LODING:
            return {
                ...state,
                enterLoading:action.data
            }
        case actionTypes.CHANGE_RANK_LIST:
            return {
                ...state,
                rankList:action.data
            }
        default:
            return state;
    }
}

export default reducer